package com.bgs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.bgs.entity.Commodityimg;
import com.bgs.entity.Commodityimgunion;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Commodity对象", description="商品表")
public class CommodityUnion {

    @ApiModelProperty(value = "商品id")
    @TableId(value = "commodity_id", type = IdType.AUTO)
    private Integer commodityId;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "商品类型")
    private String commodityType;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "服务")
    private String services;

    @ApiModelProperty(value = "说明")
    private String explain;

    @ApiModelProperty(value = "材质")
    private String rawMaterial;

    @ApiModelProperty(value = "风格")
    private String style;

    @ApiModelProperty(value = "介绍")
    private String introduce;

    @ApiModelProperty(value = "价格")
    private Double price;

    @ApiModelProperty(value = "门店id")
    private Integer storeId;

    @ApiModelProperty(value = "抢购时间")
    private LocalDateTime robTime;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime creationTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否删除（y是删除 n是未删除）")
    private String isDel;

    private List<Commodityimg> commodityimgs;

    private List<Commodityimgunion> commodityimgunions;
}
